<?php if ( ! defined('ABS_PATH')) exit('ABS_PATH is not loaded. Direct access is not allowed.');

  

    class LanguageForm extends Form {

        static public function primary_input_hidden($locale) {
            parent::generic_input_hidden("pk_c_code", $locale["pk_c_code"]) ;
        }

        static public function name_input_text($locale = null) {
            parent::generic_input_text("s_name", (isset($locale)) ? $locale['s_name'] : "") ;
            return true ;
        }

        static public function short_name_input_text($locale = null) {
            parent::generic_input_text("s_short_name", (isset($locale)) ? $locale['s_short_name'] : "") ;
            return true ;
        }

        static public function description_input_text($locale = null) {
            parent::generic_input_text("s_description", (isset($locale)) ? $locale['s_description'] : "") ;
            return true ;
        }

        static public function currency_format_input_text($locale = null) {
            parent::generic_input_text("s_currency_format", (isset($locale)) ? $locale['s_currency_format'] : "") ;
            return true ;
        }

        static public function date_format_input_text($locale = null) {
            parent::generic_input_text("s_date_format", (isset($locale)) ? $locale['s_date_format'] : "") ;
            return true ;
        }

        static public function description_textarea($locale = null) {
            parent::generic_textarea("s_stop_words", $locale['s_stop_words']) ;
            return true ;
        }

        static public function enabled_input_checkbox($locale = null) {
            parent::generic_input_checkbox("b_enabled", "1", ($locale["b_enabled"] == 1) ? true : false) ;
            return true ;
        }

        static public function enabled_bo_input_checkbox($locale = null) {
            parent::generic_input_checkbox("b_enabled_bo", "1", ($locale["b_enabled_bo"] == 1) ? true : false) ;
            return true ;
        }
    }

?>